﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Teachers.aspx.cs" Inherits="YouthCMS.Teachers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 class="title">
        <a href="#">Opret en Lærer</a>
    </h2>
    <span class="styleForSubmitButtons">Her kan du oprette en Lærer. </span>
    <div class="singleFields">
        <asp:Label ID="lblTeacherUsername" Text="Brugernavn" AssociatedControlID="txtBoxUsername"
            runat="server" />
        <asp:TextBox ID="txtBoxUsername" runat="server"> </asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtBoxUsername"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste et brugernavn."
            ToolTip="Brugernavn <b>Skal</b> indtastes." ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblTeacherPassword" Text="Kodeord" runat="server" />
        <asp:TextBox ID="txtBoxTeacherPassword" MaxLength="255" runat="server"></asp:TextBox>
        <asp:Button ID="buttonGeneratePassword" Text="Generer Kodeord" OnClick="GeneratePassword"
            runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBoxTeacherPassword"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste et (valgfrit) kodeord."
            ToolTip="Brugernavn <b>Skal</b> indtastes." ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblTeacherSSN" Text="CPR-NR" runat="server" />
        <asp:TextBox ID="txtBoxTeacherSSN" runat="server"> </asp:TextBox>
        <asp:RangeValidator
            ID="RangeValidator1" runat="server" Type="String" MinimumValue="000000-0000" MaximumValue="999999-9999" ControlToValidate="txtBoxTeacherSSN" ValidationGroup="CreateTeacherValidationGroup" ErrorMessage="Indtast dit CPR-nummer . F.eks 220192-1611"></asp:RangeValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtBoxTeacherSSN"
            CssClass="failureNotification" ErrorMessage="Udfyld venligst CPR-NR"
            ToolTip="Af sikkerhedsmæssige årsager, skal dit CPR-nummer udfyldes." ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblTeacherFirstName" Text="Fornavn" runat="server" />
        <asp:TextBox ID="txtBoxTeacherFirstName" MaxLength="255" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBoxTeacherFirstName"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste dit Fornavn."
            ToolTip="Du indtaster dit fornavn i feltet." ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblTeacherLastName" Text="Efternavn" runat="server" />
        <asp:TextBox ID="txtBoxTeacherLastName" ValidationGroup="" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBoxTeacherLastName"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste dit Efternavn."
            ToolTip="Du indtaster dit efternavn i feltet" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblAddress1" Text="Adresse 1" runat="server" />
        <asp:TextBox ID="txtBoxAddress1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBoxAddress1"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste din adresse."
            ToolTip="Du indtaster din hjemme adresse" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblAddress2" Text="Adresse 2" runat="server" />
        <asp:TextBox ID="txtBoxAddress2" runat="server"></asp:TextBox>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblPhone1" Text="Hjemmetelefon" runat="server" />
        <asp:TextBox ID="txtBoxPhone1" runat="server"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtBoxPhone1"
            CssClass="failureNotification" ErrorMessage="Indtast din hjemme telefon"
            ToolTip="Indtast dit hjemmenummer" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblMobile" Text="Mobiltelefon" runat="server" />
        <asp:TextBox ID="txtBoxMobile" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtBoxMobile"
            CssClass="failureNotification" ErrorMessage="Indtast dit mobiltelefon nummer"
            ToolTip="Indtast dit mobiltelefon nummer" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblWorkPhone" Text="Arbejdstelefon" runat="server" />
        <asp:TextBox ID="txtBoxWorkPhone" runat="server"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtBoxWorkPhone"
            CssClass="failureNotification" ErrorMessage="Indtast dit arbejdsnummer"
            ToolTip="Indtast et nummer på din arbejdsplads" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblEmail" Text="Email" runat="server" />
        <asp:TextBox ID="txtBoxEmail" runat="server"></asp:TextBox>
         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtBoxEmail"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste din Email Adresse."
            ToolTip="En Email adresse kan se således ud: test@test.com" ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblZipCode" Text="Postnr" runat="server" />
        <asp:DropDownList ID="ddLZipcode" runat="server">
        </asp:DropDownList>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblInitials" Text="Initialer" runat="server" />
        <asp:TextBox ID="txtBoxInitials" runat="server"></asp:TextBox>
    </div>
    <div class="singleFields">
        <asp:Label ID="Label1" Text="Adresse Beskyttelse" runat="server" />
        <asp:CheckBoxList ID="chbAddressProtection" runat="server" Width="201px">
            <asp:ListItem Value="0">Ja</asp:ListItem>
            <asp:ListItem Value="1">Nej</asp:ListItem>
        </asp:CheckBoxList>
    </div>
    <div class="singleFields">
        <asp:Label ID="Label2" Text="Telefon Nr. Beskyttelse" runat="server" />
        <asp:CheckBoxList ID="chbPhoneProtection" runat="server" Width="201px">
            <asp:ListItem Value="0">Ja</asp:ListItem>
            <asp:ListItem Value="1">Nej</asp:ListItem>
        </asp:CheckBoxList>
        
    </div>
    <div class="failureNotification">
        <asp:ValidationSummary ID="ValidationSummary1" CssClass="failureNotification" ValidationGroup="CreateTeacherValidationGroup"
            runat="server" />
    </div>
    <p class="links">
        <asp:LinkButton ID="lButtonSubmit" CommandName="Login" ValidationGroup="CreateTeacherValidationGroup"
            OnClick="SubmitTeacher" runat="server">Opret Lærer</asp:LinkButton>
    </p>
</asp:Content>

